package v1

type LoginReq struct {
	UserName string `json:"username" binding:"required"`
	Password string `json:"password" binding:"required"`
}

type LoginResponse struct {
	User  UserInfo `json:"user"`
	Token string   `json:"token"`
}

type UserInfo struct {
	ID           uint   `json:"id"`
	UserName     string `json:"user_name"`
	Type         uint   `json:"type"`
	HeadPortrait string `json:"avatar_url"`
}

type UpdateUserReq struct {
	UserId       uint   `json:"user_id"`
	UserName     string `json:"user_name"`
	OldPassword  string `json:"old_password"`
	NewPassword  string `json:"new_password"`
	HeadPortrait string `json:"avatar_url"`
}

type RegisterUserReq struct {
	UserName string `json:"username" binding:"required"`
	Password string `json:"password" binding:"required"`
}
